Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[crypto] Add OAEP padding for RSA. #20713

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

jadephilipoom
Copy link
Contributor

This padding mode is used for RSA encryption and is defined in IETF RFC 8017.

I couldn't find any tests for OAEP specifically, but I implemented RSA encryption on top of this and got it passing tests. The encryption code and tests will be in a follow-up PR or two for size reasons.

@jadephilipoom jadephilipoom requested a review from a team as a code owner December 21, 2023 17:00
*
* This is convenient to have available for some implementations.
*/
static const entropy_seed_material_t kEntropyEmptySeed = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You probably need to move this to entropy.c and declare it here as an extern so that it is more stylistic.

This padding mode is used for RSA encryption and is defined in IETF RFC
8017.

Signed-off-by: Jade Philipoom <[email protected]>
@jadephilipoom jadephilipoom merged commit 6aa7fb0 into lowRISC:master Dec 22, 2023
32 checks passed
@jadephilipoom jadephilipoom deleted the rsa-oaep branch December 22, 2023 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants